package com.wangzhixuan.model.vo;

import java.io.Serializable;
import java.util.Date;

import com.wangzhixuan.commons.constant.ApiCode;
import com.wangzhixuan.commons.scan.MyException;
import com.wangzhixuan.commons.utils.StringUtils;

public class AchievementsVo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer userId;
	private Date beginTime;
	private Date endingTime;

	public void checekParam() throws MyException {
		if (this.userId == null) {
			throw new MyException(ApiCode.CODE_501, "请重新登录");
		}
		if (beginTime == null) {
			throw new MyException(ApiCode.CODE_501, "请选择开始时间");
		}
		if (endingTime == null) {
			throw new MyException(ApiCode.CODE_501, "请选择结束时间");
		}
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndingTime() {
		return endingTime;
	}

	public void setEndingTime(Date endingTime) {
		this.endingTime = endingTime;
	}

}
